package com.dfbz.demo;

import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.PrintStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_标准输入流 {

    public static void main(String[] args) throws Exception{
        System.setOut(new PrintStream("001.txt"));

        System.out.println("饺子");
        System.out.println("混沌");
    }


    public static void test(String[] args) {

        InputStream in = System.in;

        // 标准输入流指向的是控制台
        PrintStream out = System.out;
        out.println("烧鸭饭");
        out.println("烧鹅饭");
        out.println("猪脚饭");


    }
}
